package com.taobao.api.response;

import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.TaobaoObject;
import java.util.Date;

import com.taobao.api.TaobaoResponse;

/**
 * TOP API: taobao.omniorder.store.deliverconfig.get response.
 * 
 * @author top auto create
 * @since 1.0, null
 */
public class OmniorderStoreDeliverconfigGetResponse extends TaobaoResponse {

	private static final long serialVersionUID = 3723338711523645784L;

	/** 
	 * result
	 */
	@ApiField("result")
	private Result result;


	public void setResult(Result result) {
		this.result = result;
	}
	public Result getResult( ) {
		return this.result;
	}
	
	/**
 * data
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class StoreDeliverConfig extends TaobaoObject {

	private static final long serialVersionUID = 7742851449463411127L;

	/**
		 * 是否是活动期
		 */
		@ApiField("activity")
		private Boolean activity;
		/**
		 * 当activity为true时返回，活动结束时间
		 */
		@ApiField("activity_end_time")
		private Date activityEndTime;
		/**
		 * 当activity为true时返回,活动开始时间
		 */
		@ApiField("activity_start_time")
		private Date activityStartTime;
		/**
		 * 每日接单阈值
		 */
		@ApiField("deliver_threshold")
		private Long deliverThreshold;
		/**
		 * 派单时间，格式为：[{"startTime":"08:40","endTime":"12:20"},{"startTime":"18:00","endTime":"22:00"}]
		 */
		@ApiField("dispatch_time_range")
		private String dispatchTimeRange;
		/**
		 * 优先级，取值0-10，0优先级最大，10优先级最小
		 */
		@ApiField("priority")
		private Long priority;
		/**
		 * 接单时间段，格式为 "09:00-12:00", "" 表示一直开启
		 */
		@ApiField("working_time")
		private String workingTime;
	

	public Boolean getActivity() {
			return this.activity;
		}
		public void setActivity(Boolean activity) {
			this.activity = activity;
		}
		public Date getActivityEndTime() {
			return this.activityEndTime;
		}
		public void setActivityEndTime(Date activityEndTime) {
			this.activityEndTime = activityEndTime;
		}
		public Date getActivityStartTime() {
			return this.activityStartTime;
		}
		public void setActivityStartTime(Date activityStartTime) {
			this.activityStartTime = activityStartTime;
		}
		public Long getDeliverThreshold() {
			return this.deliverThreshold;
		}
		public void setDeliverThreshold(Long deliverThreshold) {
			this.deliverThreshold = deliverThreshold;
		}
		public String getDispatchTimeRange() {
			return this.dispatchTimeRange;
		}
		public void setDispatchTimeRange(String dispatchTimeRange) {
			this.dispatchTimeRange = dispatchTimeRange;
		}
		public Long getPriority() {
			return this.priority;
		}
		public void setPriority(Long priority) {
			this.priority = priority;
		}
		public String getWorkingTime() {
			return this.workingTime;
		}
		public void setWorkingTime(String workingTime) {
			this.workingTime = workingTime;
		}

}

	/**
 * result
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class Result extends TaobaoObject {

	private static final long serialVersionUID = 4434252369724629541L;

	/**
		 * code
		 */
		@ApiField("code")
		private String code;
		/**
		 * data
		 */
		@ApiField("data")
		private StoreDeliverConfig data;
		/**
		 * message
		 */
		@ApiField("message")
		private String message;
	

	public String getCode() {
			return this.code;
		}
		public void setCode(String code) {
			this.code = code;
		}
		public StoreDeliverConfig getData() {
			return this.data;
		}
		public void setData(StoreDeliverConfig data) {
			this.data = data;
		}
		public String getMessage() {
			return this.message;
		}
		public void setMessage(String message) {
			this.message = message;
		}

}



}
